import 'package:fate_blind_box/utils/common_widget.dart';
import 'package:flutter/material.dart';
import '../../../theme/theme_color.dart';
import '../../../utils/provider.dart';
import 'logoutFinish.dart';

class SendCodeSecondUI extends StatelessWidget {
  const SendCodeSecondUI({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const SendCodeSecondUIWidget();
  }
}

class SendCodeSecondUIWidget extends StatelessWidget {
  const SendCodeSecondUIWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AppWidget.navTitleBar(
        title: '注销账号',
        childWidget: SingleChildScrollView(
          child: Center(
              child: Column(
            children: [
              const SizedBox(
                height: 84,
              ),
              const Image(
                width: 130,
                height: 130,
                image: AssetImage("images/ic_sendCodeSafe.png"),
              ),
              const SizedBox(
                height: 30,
              ),
              Text(
                '请使用手机+86 ${(Provider.mobile)}\n发送短信“aze”到“106981630163331”',
                style: TextStyle(
                    color: ThemeColor.textColor,
                    fontSize: 16,
                    fontWeight: FontWeight.bold),
              ),
              const SizedBox(
                height: 10,
              ),
              Text(
                '1.确保短信已成功发送后点击下方“已发送”按钮”；\n2.手机使用双卡的用户请确认已选择了正确的号码发送短信；',
                style: TextStyle(
                  color: ThemeColor.textColorSecond,
                  fontSize: 12,
                ),
                maxLines: 2,
              ),
              const SizedBox(
                height: 37,
              ),
              GestureDetector(
                child: Container(
                    margin: const EdgeInsets.fromLTRB(59, 30, 59, 0),
                    height: 45,
                    decoration: ShapeDecoration(
                      shape: RoundedRectangleBorder(
                          borderRadius: BorderRadius.circular(22.5)),
                      color: const Color(0xFF7F69D9),
                    ),
                    width: double.maxFinite,
                    child: const Center(
                      child: Text(
                        "发送短信验证",
                        style: TextStyle(
                          color: Colors.white,
                          fontSize: 18,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    )),
                onTap: () {
                  Navigator.of(context).push(MaterialPageRoute(
                      builder: (ctx) => const logoutFinishUI()));
                },
              ),
            ],
          )),
        ));
  }
}
